package com.gudaomai.ekproject.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import com.gudaomai.ekproject.common.EkBaseMapper;
import com.gudaomai.ekproject.entity.Permission;
import com.gudaomai.ekproject.entity.RolesPermissions;

/**
 * <p>
 * 权限 Mapper 接口
 * </p>
 *
 * @author zenghualu
 * @since 2017-06-26
 */
public interface PermissionMapper extends EkBaseMapper<Permission> {

	@Select("select * from roles_permissions where role_id=#{roleId}")
	public List<RolesPermissions> getRolesPermissionsByRoleId(@Param("roleId") String roleId);
}